home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-2.iso / os2 / gnucal.zip / Makefile.in < prev    next >
Makefile  |  1995-12-20  |  41KB  |  1,401 lines

  1. #  $Id: Makefile.in 0.16 1995/12/20 00:01:06 tom Exp $
  2. ###############################################################################
  3. #
  4. #  UN*X `Makefile.in' to create the extended  `gcal'  program by autoconf.
  5. #
  6. #  Copyright (C) 1994, 1995     Thomas Esken            <esken@uni-muenster.de>
  7. #                               Im Hagenfeld 84
  8. #                               D-48147 M"unster
  9. #                               GERMANY
  10. #
  11. #                               and the FREE SOFTWARE FOUNDATION
  12. #
  13. ###############################################################################
  14. #
  15. #
  16. #
  17. DEF = -D#
  18. #
  19. #  BEGIN: General program modification symbols,
  20. #           which may be changed by the user !!
  21. #
  22.  
  23.  
  24.  
  25. #  Write the line `DEBUG = $(DEF)DEBUG=1'
  26. #    for including some debugging code in program.
  27. #
  28. #  Write the line `DEBUG = $(DEF)DEBUG=0'
  29. #    if you don't need it...
  30. #
  31. #DEBUG = $(DEF)DEBUG=0#
  32.  
  33.  
  34.  
  35. #  Write the line `USE_CATH = $(DEF)USE_CATH=1'
  36. #    for showing some specific Catholic holidays in eternal holiday list, too.
  37. #
  38. #  Write the line `USE_CATH = $(DEF)USE_CATH=0'
  39. #    if you don't need them...
  40. #
  41. #USE_CATH = $(DEF)USE_CATH=1#
  42.  
  43.  
  44.  
  45. #  Write the line `USE_EASC = $(DEF)USE_EASC=1'
  46. #    in case you want to use the 8-bit extended IBM-ASCII character set.
  47. #
  48. #  Write the line `USE_EASC = $(DEF)USE_EASC=0'
  49. #    in case you want to use the 7-bit ISO-ASCII/EBCDIC character set.
  50. #
  51. #USE_EASC = $(DEF)USE_EASC=0#
  52.  
  53.  
  54.  
  55. #  Write the line `USE_GER = $(DEF)USE_GER=1'
  56. #    in case you want to use German message texts, holidays
  57. #    and calendar layout.
  58. #
  59. #  Write the line `USE_GER = $(DEF)USE_GER=0'
  60. #    in case you want to use English message texts, holidays
  61. #    and calendar layout.
  62. #
  63. #USE_GER = $(DEF)USE_GER=0#
  64.  
  65.  
  66.  
  67. #  Write the line `USE_HLS = $(DEF)USE_HLS=1'
  68. #    to run this program using control sequences for highlighting the current
  69. #    day/holidays/text (MS/PC-DOS will use the [n]ansi.sys driver for emitting
  70. #    ANSI escape highlighting sequences; OS2/Linux/UN*X-like systems will use
  71. #    Termcap for emitting the terminal specific highlighting sequences.
  72. #    If this fails, default (generic) ANSI highlighting sequences will be used).
  73. #
  74. #  Write the line `USE_HLS = $(DEF)USE_HLS=0'
  75. #    to run this program without highlighting...
  76. #
  77. #USE_HLS = $(DEF)USE_HLS=1#
  78.  
  79.  
  80.  
  81. #  Write the line `USE_PAGER = $(DEF)USE_PAGER=1'
  82. #    in case you want to use an external pager or if it fails
  83. #    a simple, built-in pager.
  84. #
  85. #  Write the line `USE_PAGER = $(DEF)USE_PAGER=0'
  86. #    in case you don't like this feature...
  87. #
  88. #USE_PAGER = $(DEF)USE_PAGER=1#
  89.  
  90.  
  91.  
  92. #  Write the line `USE_RC = $(DEF)USE_RC=1'
  93. #    for using the special month dates functions (print daily / weekly
  94. #    monthly / yearly / eternal / special fixed dates as stated in
  95. #    resource files).
  96. #
  97. #  Write the line `USE_RC = $(DEF)USE_RC=0'
  98. #    if you don't like this feature...
  99. #
  100. #USE_RC = $(DEF)USE_RC=1#
  101.  
  102.  
  103.  
  104. #  Write the line `USE_USHDY = $(DEF)USE_USHDY=1'
  105. #    for showing additional specific U.S. holidays in eternal holiday
  106. #    list, too (active only if symbol USE_GER is set to 0).
  107. #
  108. #  Write the line `USE_USHDY = $(DEF)USE_USHDY=0'
  109. #    if you don't need them...
  110. #
  111. #USE_USHDY = $(DEF)USE_USHDY=0#
  112.  
  113.  
  114.  
  115. #  Specify, which directories shall be used for the resource files:
  116. #
  117. #  (Define the empty string \"\" if you don't need library directories,
  118. #  so library files are searched in the actual and $HOME directory only)
  119. #
  120. #
  121. #  Name of user (private access) specific library directory
  122. #    (relative to $HOME directory)
  123. #
  124. GCAL_USR_LIBDIR = \"lib/gcal-lib\"
  125. #
  126. #  Name of system (common access) specific library directory
  127. #    (static to $(prefix) directory)
  128. #
  129. GCAL_SYS_LIBDIR = \"$(prefix)/lib/gcal-lib\"
  130.  
  131.  
  132.  
  133. #  Write the line `EXIT_STAT_HLP = $(DEF)EXIT_STAT_HLP=127'
  134. #    if you want the exit status 127 on a given --help, --long-help[=ARG],
  135. #    --license and --version argument.
  136. #
  137. #  Comment the line `EXIT_STAT_HLP = $(DEF)EXIT_STAT_HLP=127' or write
  138. #    `EXIT_STAT_HLP = $(DEF)EXIT_STAT_HLP=0' if you want the exit status 0
  139. #     on a given --help, --long-help[=ARG], --license and --version argument.
  140. #
  141. #EXIT_STAT_HLP = $(DEF)EXIT_STAT_HLP=127#
  142.  
  143.  
  144.  
  145. #  Either write the line `GREG_1582 = $(DEF)GREG_1582=1'
  146. #    if you want the Gregorian reformation have occured in 1582
  147. #  or write the line `GREG_1752 = $(DEF)GREG_1752=1'
  148. #    if you want the Gregorian reformation have occured in 1752.
  149. #
  150. #  Using this is not necessary in most cases, because this year is
  151. #    set correctly depending on selected language to use (see USE_GER);
  152. #    this means to the year 1582 for German users and to the year 1752
  153. #    for English/American users by default.  But if you want to change
  154. #    this, feel free to do.
  155. #
  156. #GREG_1582 = $(DEF)GREG_1582=0#
  157. #GREG_1752 = $(DEF)GREG_1752=0#
  158.  
  159.  
  160.  
  161. #
  162. #
  163. #
  164. DEFINES = $(DEBUG) $(USE_CATH) $(USE_EASC) $(USE_GER) \
  165.   $(USE_HLS) $(USE_PAGER) $(USE_RC) $(USE_USHDY)
  166. DEFINES2 = $(DEF)GCAL_USR_LIBDIR=$(GCAL_USR_LIBDIR) \
  167.   $(DEF)GCAL_SYS_LIBDIR=$(GCAL_SYS_LIBDIR)
  168. DEFINES3 = $(EXIT_STAT_HLP) $(GREG_1582) $(GREG_1752)
  169.  
  170.  
  171. #
  172. #  END: general program modification symbols,
  173. #         which may be changed by the user !!
  174. #
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181. #### Start of system configuration section. ####
  182.  
  183. srcdir = @srcdir@
  184. VPATH = @srcdir@
  185.  
  186. lang = @lang@
  187.  
  188. MAKEINFO = @MAKEINFO@
  189. MAKEINFOVERSION = @MAKEINFOVERSION@
  190. TEXI2DVI = @TEXI2DVI@
  191.  
  192. SHAR = @SHAR@
  193. ZIP = @ZIP@
  194. ZOO = @ZOO@
  195. LHA = @LHA@
  196. TAR = @TAR@
  197. GZIP = @GZIP@
  198. COMPRESS = @COMPRESS@
  199.  
  200. FIND = @FIND@
  201.  
  202. AWK = @AWK@
  203. PERL = @PERL@
  204.  
  205. CC = @CC@
  206.  
  207. INSTALL = @INSTALL@
  208. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  209. INSTALL_DATA = @INSTALL_DATA@
  210.  
  211. # Things you might add to DEFS (configure usually figures out what to do):
  212. #
  213. # HAVE_LIBTERMCAP      - Link -ltermcap to executable.
  214. # HAVE_LIBTERMLIB      - Link -ltermlib instead of -ltermcap to executable.
  215. # STDC_HEADERS         - ANSI-C header files, use <stdio.h>, <stdlib.h>
  216. #                          and <string.h> implicitly.
  217. # HAVE_STDIO_H         - Use <stdio.h>.
  218. # HAVE_STDLIB_H        - Use <stdlib.h>. Not needed if STDC_HEADERS are defined.
  219. # HAVE_STRING_H        - If not defined, use <strings.h>, not <string.h>.
  220. #                          Not needed if STDC_HEADERS are defined.
  221. # HAVE_UNISTD_H        - Use <unistd.h>.
  222. # HAVE_CTYPE_H         - Use <ctype.h>.
  223. # HAVE_ASSERT_H        - Use <assert.h>.
  224. # HAVE_FCNTL_H         - Use <fcntl.h>.
  225. # HAVE_SIGNAL_H        - Use <signal.h>.
  226. # HAVE_TERMIO_H        - Use <termio.h>.
  227. # HAVE_TERMIOS_H       - Use <termios.h>.
  228. # HAVE_SGTTY_H         - Use <sgtty.h>.
  229. # HAVE_TERMCAP_H       - Use <termcap.h>.
  230. # HAVE_SYS_IOCTL_H     - Use <sys/ioctl.h>.
  231. # HAVE_SYS_STREAM_H    - Use <sys/stream.h>.
  232. # HAVE_SYS_PTEM_H      - Use <sys/ptem.h>.
  233. # HAVE_SYS_TYPES_H     - Use <sys/types.h>.
  234. # HAVE_SYS_TIME_H      - Use <sys/time.h> instead of <time.h>.
  235. # HAVE_SYS_WAIT_H      - Use <sys/wait.h>.
  236. # HAVE_TIME_T          - Type time_t is predefined.
  237. # TIME_WITH_SYS_TIME   - Use both <time.h> and <sys/time.h>.
  238. # HAVE_VOID            - Identifier void exists.
  239. # HAVE_DUP             - Function dup() is found.
  240. # HAVE_DUP2            - Function dup2() is found.
  241. # HAVE_STRTOL          - Function strtol() is found.
  242. # HAVE_STRSTR          - Function strstr() is found.
  243. # HAVE_STRCHR          - Function strchr() is found.
  244. # HAVE_STRRCHR         - Function strrchr() is found.
  245. # HAVE_ISDIGIT         - Function/macro isdigit() is found.
  246. # HAVE_ISALNUM         - Function/macro isalnum() is found.
  247. # HAVE_UPPER_LOWER     - Functions/macros toupper(), tolower(),
  248. #                          isupper() and islower() are found.
  249. # HAVE_TERMIOS_FUNCS   - All termios functions are available.
  250. # HAVE_OSPEED          - The ospeed variable is defined in
  251. #                          -ltermcap or -ltermlib.
  252. # MUST_DCL_OSPEED      - We must declare the ospeed variable.
  253. # HAVE_SYS_INTERPRETER - Shell can interpret `#!' in the first
  254. #                          line of a shell script
  255. #
  256. # Further internal symbols you might want to set:
  257. #
  258. # CUT_LONGNAMES        - Cuts respectively replaces some long variable or
  259. #                          function names to 6 significant places so ANY
  260. #                          linker should be able to bind an executable file.
  261.  
  262. DEFS = @DEFS@
  263. LIBS = @LIBS@
  264.  
  265. CFLAGS = @CFLAGS@
  266. CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@
  267. LDFLAGS = @LDFLAGS@
  268.  
  269. X=
  270. # For OS/2 or MSDOS, use: X=.exe
  271.  
  272. O=.o
  273. # For OS/2 or MSDOS, use: O=.obj
  274.  
  275. prefix = @prefix@
  276. exec_prefix = @exec_prefix@
  277.  
  278. # Where to install the executables.
  279. bindir = $(exec_prefix)/bin
  280. # In this case datadir is that directory, where .gcalrc is installed.
  281. datadir = $(HOME)
  282. # Where to install the converted reminder/appointment files.
  283. datesdir = $(prefix)/`echo $(GCAL_USR_LIBDIR) | sed -e 's/\"//g'`
  284. # Where to install the info files.
  285. infodir = $(prefix)/info
  286. # Extension (not including `.') for the installed manual page file names.
  287. manext = 1
  288. # Where to install the manual pages.
  289. mandir = $(prefix)/man/man$(manext)
  290.  
  291. #### End of system configuration section. ####
  292.  
  293.  
  294.  
  295. #### Start of package specific make variable definition section. ####
  296.  
  297. SHELL = /bin/sh
  298.  
  299. #
  300. # Compressor/archiver flags.
  301. #
  302. SHARFLAGS = -MF
  303. ZIPFLAGS = -ur9
  304. ZOOFLAGS = ahI
  305. LHAFLAGS = u
  306. TARFLAGS = -cvf
  307. GZIPFLAGS = -c9
  308. COMPRESSFLAGS = -c
  309.  
  310. #
  311. # Other utility program flags.
  312. #
  313. FINDFLAGS = -type f -print
  314. MAKEINFOFLAGS = --output
  315. #
  316. # For text documentation files, makeinfo MUST be called exactly in this way!
  317. #
  318. MAKEINFOFLAGS2 = --no-split --no-headers $(MAKEINFOFLAGS)
  319.  
  320. #
  321. # File owner permissions used for all distribution targets.
  322. #
  323. DISTBINPERMS = 0777
  324. DISTSRCPERMS = 0666
  325. #
  326. # File owner permissions used for installdates targets and
  327. # for resetting the permissions after running a distribution target.
  328. #
  329. BINPERMS = `echo $(INSTALL_PROGRAM) | sed -e 's/[^0-9]//g'`
  330. SRCPERMS = `echo $(INSTALL_DATA) | sed -e 's/[^0-9]//g'`
  331. #
  332. # File owner permissions used for installdates targets and
  333. # for resetting the permissions after running a distribution target
  334. # if the configure script doesn't set $(BINPERMS) or $(SRCPERMS).
  335. #
  336. BINPERMS2 = 0755
  337. SRCPERMS2 = 0644
  338.  
  339. #
  340. # Standard names.
  341. #
  342.  
  343. SRCS = gcal.c gcal_fil.c gcal_hdy.c gcal_prt.c \
  344.   gcal_rc.c gcal_rcc.c gcal_rcu.c gcal_tty.c gcal_utl.c
  345.  
  346. OBJS = gcal$O gcal_fil$O gcal_hdy$O gcal_prt$O \
  347.   gcal_rc$O gcal_rcc$O gcal_rcu$O gcal_tty$O gcal_utl$O
  348.  
  349. HDRS = gcal.h gcal_def.h gcal_tai.h
  350.  
  351. genFILES = BUGS COPYING README README2 INSTALL \
  352.   SYMBOLS NEWS HISTORY TODO THANKS MANIFEST \
  353.   Makefile.in configure.in gcal_cfg.h.in \
  354.   gcalrc $(SRCS) $(HDRS)
  355.  
  356. toolscriptDIR = scripts#
  357. toolscriptFILES = $(toolscriptDIR)/cal2gcal.awk $(toolscriptDIR)/cal2gcal.pl \
  358.   $(toolscriptDIR)/ct2gcal.awk $(toolscriptDIR)/ct2gcal.pl
  359.  
  360. calendarsDIR = calendars#
  361. calendarsFILES = $(calendarsDIR)/calendar.birth $(calendarsDIR)/calendar.chris \
  362.   $(calendarsDIR)/calendar.compu $(calendarsDIR)/calendar.histo \
  363.   $(calendarsDIR)/calendar.holid $(calendarsDIR)/calendar.judai \
  364.   $(calendarsDIR)/calendar.music $(calendarsDIR)/calendar.ushol
  365.  
  366. datesDIR = dates#
  367. datesFILES = $(datesDIR)/ancient $(datesDIR)/can_holiday $(datesDIR)/celtic \
  368.   $(datesDIR)/computing $(datesDIR)/events $(datesDIR)/events1 \
  369.   $(datesDIR)/events2 $(datesDIR)/events3 $(datesDIR)/events4 \
  370.   $(datesDIR)/events5 $(datesDIR)/events6 $(datesDIR)/gdead \
  371.   $(datesDIR)/hawaii $(datesDIR)/literature $(datesDIR)/lives \
  372.   $(datesDIR)/lives1 $(datesDIR)/lives2 $(datesDIR)/lives3 \
  373.   $(datesDIR)/lives4 $(datesDIR)/lives5 $(datesDIR)/lives6 $(datesDIR)/lotr \
  374.   $(datesDIR)/movies $(datesDIR)/music $(datesDIR)/radio $(datesDIR)/sfo \
  375.   $(datesDIR)/space $(datesDIR)/sports $(datesDIR)/television \
  376.   $(datesDIR)/usa_holiday $(datesDIR)/usa_other $(datesDIR)/usa_states \
  377.   $(datesDIR)/witchcraft $(datesDIR)/world
  378.  
  379. datesmiscFILES = $(datesDIR)/CREDITS $(datesDIR)/README
  380.  
  381. shellscriptFILES = configure install-sh mkinstalldirs tcal
  382.  
  383. docDIR = doc#
  384. manDIR = $(docDIR)/man#
  385. manFILES = $(manDIR)/gcal-de.1 $(manDIR)/gcal-us.1
  386.  
  387. txtDIR = $(docDIR)/txt#
  388. txtFILES = $(txtDIR)/gcal-de.doc $(txtDIR)/gcal-us.doc
  389.  
  390. de-infoFILES = gcal-de.info gcal-de.info-1 gcal-de.info-2 \
  391.   gcal-de.info-3 gcal-de.info-4
  392.  
  393. us-infoFILES = gcal-us.info gcal-us.info-1 gcal-us.info-2 \
  394.   gcal-us.info-3 gcal-us.info-4
  395.  
  396. texDIR = $(docDIR)/tex#
  397. texFILES = $(texDIR)/2umlaut.awk $(texDIR)/2umlaut.pl \
  398.   $(texDIR)/texinfo.tex $(texDIR)/texinfog.tex \
  399.   $(texDIR)/isolatin1.tex \
  400.   $(texDIR)/gcal-de.texi $(texDIR)/gcal-us.texi
  401.  
  402. #
  403. #  Machine specific names.
  404. #
  405.  
  406. acornDIR = acorn#
  407. acornFILES = $(acornDIR)/readme.arm $(acornDIR)/makefile.gcc
  408.  
  409. amigaDIR = amiga#
  410. amigaFILES = $(amigaDIR)/makefile.sas $(amigaDIR)/makefile.gcc
  411.  
  412. atariDIR = atari#
  413. atariFILES = $(atariDIR)/makefile.st
  414.  
  415. linuxDIR = linux#
  416. linuxFILES = $(linuxDIR)/gcal-039.lsm
  417.  
  418. ntDIR = nt#
  419. ntFILES = $(ntDIR)/makefile.nt
  420.  
  421. msdosDIR = msdos#
  422. msdosFILES = $(msdosDIR)/gcal_tc2.prj $(msdosDIR)/makefile.bcc \
  423.   $(msdosDIR)/makefile.djg $(msdosDIR)/makefile.msc $(msdosDIR)/makefile.tc2 \
  424.   $(msdosDIR)/makefile.tcc $(msdosDIR)/makefile.wcc $(msdosDIR)/makefile.ztc
  425.  
  426. os2DIR = os2#
  427. os2FILES = $(os2DIR)/readme.os2 $(os2DIR)/makefile.emx $(os2DIR)/makefile.msc \
  428.   $(os2DIR)/gcal.def $(os2DIR)/gcal16.def
  429.  
  430. primosDIR = primos#
  431. primosINCDIR = $(primosDIR)/include#
  432. primosFILES = $(primosDIR)/readme.pri $(primosDIR)/ci.opts \
  433.   $(primosDIR)/build.cpl $(primosDIR)/getenv.c $(primosINCDIR)/stdlib.h
  434.  
  435. vmsDIR = vms#
  436. vmsFILES = $(vmsDIR)/readme.vms $(vmsDIR)/makegcal.com $(vmsDIR)/makefile.gcc \
  437.   $(vmsDIR)/makefile.mms $(vmsDIR)/makefile.vms
  438.  
  439. #
  440. # Combined names.
  441. #
  442.  
  443. DISTDIRS = $(acornDIR) $(atariDIR) $(amigaDIR) $(calendarsDIR) $(datesDIR) \
  444.   $(docDIR) $(manDIR) $(txtDIR) $(texDIR) $(linuxDIR) $(msdosDIR) $(ntDIR) \
  445.   $(os2DIR) $(primosDIR) $(primosINCDIR) $(toolscriptDIR) $(vmsDIR)
  446.  
  447. DISTFILES = $(genFILES) $(shellscriptFILES) $(manFILES) $(texFILES) \
  448.   $(toolscriptFILES) $(calendarsFILES) $(datesmiscFILES) $(datesFILES) \
  449.   $(acornFILES) $(amigaFILES) $(atariFILES) $(linuxFILES) $(msdosFILES) \
  450.   $(ntFILES) $(os2FILES) $(primosFILES) $(vmsFILES)
  451.  
  452. CREATFILES = $(txtFILES) $(INFOFILES)
  453.  
  454. INFOFILES = $(de-infoFILES) $(us-infoFILES)
  455.  
  456. ALLDIRS = $(bindir) $(datadir) $(infodir) $(mandir)
  457.  
  458. ALLDIRS2 = $(ALLDIRS) $(datesdir)
  459.  
  460. #### End of package specific make variable definition section. ####
  461.  
  462.  
  463.  
  464. #### Start of default targets section. ####
  465.  
  466. #.PHONY: check
  467.  
  468. default: gcal$X
  469.  
  470. all: gcal$X
  471.  
  472. force:
  473.  
  474. #
  475. # My private maintainer target.
  476. #
  477. overall: check install dist distzip
  478.     @echo "All targets created"
  479.  
  480. check: gcal$X
  481.     ./gcal$X > ./_gcal.test 2>&1
  482.     if test "$(lang)" = German; \
  483.     then \
  484.       if test "`wc -l < ./_gcal.test`" -eq "10"; \
  485.       then \
  486.         echo "OK ./gcal$X test"; \
  487.       else \
  488.         echo "FAILED ./gcal$X test: program buggy - report to author"; \
  489.         exit 1; \
  490.       fi; \
  491.     else \
  492.       if test "`wc -l < ./_gcal.test`" -eq "9"; \
  493.       then \
  494.         echo "OK ./gcal$X test"; \
  495.       else \
  496.         echo "FAILED ./gcal$X test: program buggy - report to author"; \
  497.         exit 1; \
  498.       fi; \
  499.     fi
  500.     rm -f ./_gcal.test
  501.  
  502. TAGS: $(SRCS) $(HDRS)
  503.     cd $(srcdir); \
  504.     etags $(SRCS) $(HDRS)
  505.  
  506. help:
  507.     @echo
  508.     @echo "Most important Makefile targets:"
  509.     @echo
  510.     @echo "Standard:       default  all  force  overall  check  TAGS  help"
  511.     @echo
  512.     @echo "Machine:        next  next-fat  os2_gcc  xenix_286  coherent"
  513.     @echo
  514.     @echo "Configuration:  Makefile  config.status  $(srcdir)/configure"
  515.     @echo
  516.     @echo "Binary:         gcal$X  gcal$O  gcal_fil$O  gcal_hdy$O  gcal_prt$O"
  517.     @echo "                gcal_rc$O  gcal_rcc$O  gcal_rcu$O  gcal_tty$O  gcal_utl$O"
  518.     @echo
  519.     @echo "Documentation:  gcal.txt  txt  gcal.info  info  gcal.dvi  dvi"
  520.     @echo
  521.     @echo "Installation:   install      installdirs  installbin   installscript"
  522.     @echo "                installdata  installman   installinfo  installdates"
  523.     @echo
  524.     @echo "Cleaning up:    clean        texclean   distclean  archiveclean"
  525.     @echo "                mostlyclean  realclean  uninstall  maintainer-clean"
  526.     @echo
  527.     @echo "Distribution:   dist  distzip  distzoo  distlha  distshar"
  528.     @echo
  529.     @exit 0
  530.  
  531. #### End of default targets section. ####
  532.  
  533.  
  534.  
  535. #### Start of specific targets section. ####
  536.  
  537. #
  538. # 'configure' works only on Unix systems. For other systems able to make
  539. # sense of this makefile, you can define target specific entries here.
  540. # For other systems such as MSDOS, separate Makefiles are
  541. # provided in subdirectories.
  542. #
  543.  
  544. #
  545. # NeXT 2.x, 3.0, 3.1 thin. For gcc, replace -bsd with -D__STRICT_BSD__.
  546. #
  547. next:
  548.     $(MAKE) all CFLAGS="-O -bsd" \
  549.     DEFS="-UHAVE_STDLIB_H -UHAVE_STRING_H"
  550.  
  551. #
  552. # NeXT 3.1 fat (68k + 386). For gcc, replace -bsd with -D__STRICT_BSD__.
  553. #
  554. next-fat:
  555.     $(MAKE) all \
  556.     CFLAGS="-O2 -bsd -fno-builtin" \
  557.     DEFS="-UHAVE_STDLIB_H -UHAVE_STRING_H"
  558.  
  559. #
  560. # gcc with emx 0.8f kit (use by preference os2/makefile.emx)
  561. #
  562. os2_gcc:
  563.     $(MAKE) all CC=gcc CFLAGS="-O -DOS2" X=".exe"
  564.  
  565. #
  566. # Xenix 2.3.2 for 286:
  567. #
  568. xenix_286:
  569.     $(MAKE) all CFLAGS="-HUGE -M2h"
  570.  
  571. #
  572. # Coherent (with broken /bin/sh):
  573. #
  574. coherent:
  575.     $(MAKE) all \
  576.     DEFS="-DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1"
  577.  
  578. #### End of specific targets section. ####
  579.  
  580.  
  581.  
  582. #### Start of (auto)configure specific section. ####
  583.  
  584. $(srcdir)/configure: configure.in
  585.     @echo "Warning: $(srcdir)/configure is out of date"
  586. #    cd $(srcdir); \
  587. #    autoconf
  588.  
  589. gcal_cfg.h: stamp-h
  590.  
  591. stamp-h: gcal_cfg.h.in config.status
  592.     CONFIG_FILES= CONFIG_HEADERS=gcal_cfg.h $(SHELL) ./config.status
  593.     echo timestamp > stamp-h
  594.  
  595. Makefile: Makefile.in config.status
  596.     CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
  597.  
  598. config.status: configure
  599.     $(SHELL) ./config.status --recheck
  600.  
  601. #### End of (auto)configure specific section. ####
  602.  
  603.  
  604.  
  605. #### Start of message section. ####
  606.  
  607. msg4:
  608.     @echo
  609.     @echo "This command is intended for maintainers to use;"
  610.     @echo "rebuilding the deleted files requires makeinfo."
  611.  
  612. msg3:
  613.     @echo
  614.     @echo "Ok, lets erase some files..."
  615.  
  616. msg2:
  617.     @echo
  618.     @echo "Checking..."
  619.  
  620. msg: msg2
  621.     @echo
  622.     @echo "Building for *** $(lang) *** users   =8^)"
  623.     @echo
  624.  
  625. #### End of message section. ####
  626.  
  627.  
  628.  
  629. #### Start of implicit rules section. ####
  630.  
  631. .c$O:
  632.     @echo "Compiling \`$<' ..."
  633.     $(CC) -c $(CPPFLAGS) $(DEFINES) $(DEFINES2) $(DEFINES3) $(DEFS) $(CFLAGS) $<
  634.  
  635. #### End of implicit rules section. ####
  636.  
  637.  
  638.  
  639. #### Start of actual build-related targets section. ####
  640.  
  641. #
  642. # Try to create the object files and the resulting executable file.
  643. #
  644.  
  645. gcal$X: msg Makefile $(OBJS)
  646.     @echo "Linking object files"
  647.     $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
  648.     @echo "Executable file ./gcal$X created"
  649.  
  650. gcal$O: gcal.h gcal_cfg.h gcal_def.h gcal_tai.h
  651.  
  652. gcal_fil$O: gcal.h gcal_cfg.h gcal_def.h gcal_tai.h
  653.  
  654. gcal_hdy$O: gcal.h gcal_cfg.h gcal_def.h gcal_tai.h
  655.  
  656. gcal_prt$O: gcal.h gcal_cfg.h gcal_def.h gcal_tai.h
  657.  
  658. gcal_rc$O: gcal.h gcal_cfg.h gcal_def.h gcal_tai.h
  659.  
  660. gcal_rcc$O: gcal.h gcal_cfg.h gcal_def.h gcal_tai.h
  661.  
  662. gcal_rcu$O: gcal.h gcal_cfg.h gcal_def.h gcal_tai.h
  663.  
  664. gcal_tty$O: gcal.h gcal_cfg.h gcal_def.h gcal_tai.h
  665.  
  666. gcal_utl$O: gcal.h gcal_cfg.h gcal_def.h gcal_tai.h
  667.  
  668. #
  669. # If not exists, try to create both German and English text documentation
  670. # files for distribution (dist, distzip, distzoo, distlha and distshar)
  671. # from *.texi files and strip all index entries.
  672. #
  673.  
  674. gcal.txt: msg2 $(srcdir)/$(texDIR)/gcal-de.texi $(srcdir)/$(texDIR)/gcal-us.texi
  675.     if test ! -f "$(srcdir)/$(txtDIR)/gcal-de.doc" || test ! -f "$(srcdir)/$(txtDIR)/gcal-us.doc"; \
  676.     then \
  677.       if test -n "$(ZIP)" || test -n "$(ZOO)" || test -n "$(LHA)" || test -n "$(SHAR)" \
  678.       || (test -n "$(TAR)" && (test -n "$(GZIP)" || test -n "$(COMPRESS)")); \
  679.       then \
  680.         if test -n "$(MAKEINFO)" && test -n "$(MAKEINFOVERSION)"; \
  681.         then \
  682.           echo "Creating text documentation files"; \
  683.           echo "Please wait..."; \
  684.           if test ! -f "$(srcdir)/$(txtDIR)/gcal-de.doc"; \
  685.           then \
  686.             $(MAKEINFO) $(MAKEINFOFLAGS2) gcal-de.doc $(srcdir)/$(texDIR)/gcal-de.texi; \
  687.             cat gcal-de.doc | \
  688.             sed -e 's/* Menu:/(entfernt)/g' \
  689.                 -e 's/*note/*siehe/g' \
  690.                 -e 's/*Note/*Siehe/g' \
  691.                 -e 's/Footnotes/Fu\"snoten/g' \
  692.                 -e '/^* /d' > $(srcdir)/$(txtDIR)/gcal-de.doc; \
  693.              rm -f gcal*.doc; \
  694.             echo "$(srcdir)/$(txtDIR)/gcal-de.doc created"; \
  695.           fi; \
  696.           if test ! -f "$(srcdir)/$(txtDIR)/gcal-us.doc"; \
  697.           then \
  698.             $(MAKEINFO) $(MAKEINFOFLAGS2) gcal-us.doc $(srcdir)/$(texDIR)/gcal-us.texi; \
  699.             cat gcal-us.doc | \
  700.             sed -e 's/* Menu:/(removed)/g' \
  701.                 -e '/^* /d' > $(srcdir)/$(txtDIR)/gcal-us.doc; \
  702.              rm -f gcal*.doc; \
  703.             echo "$(srcdir)/$(txtDIR)/gcal-us.doc created"; \
  704.           fi; \
  705.         else \
  706.           if test -z "$(MAKEINFO)"; \
  707.           then \
  708.             echo "Unable to create text documentation files, missing \`makeinfo'"; \
  709.           else \
  710.             echo "Unable to create text documentation files, \`makeinfo' out of date"; \
  711.           fi; \
  712.         fi; \
  713.       else \
  714.         echo "Text documentation files not created because"; \
  715.         echo "archiver respectively compressor programs are missing"; \
  716.       fi; \
  717.     else \
  718.       echo "Creation of text documentation files unnecessary"; \
  719.     fi
  720.  
  721. txt: gcal.txt
  722.  
  723. #
  724. # If not exists, try to create both German and English info documentation
  725. # files for distribution (dist, distzip, distzoo, distlha and distshar).
  726. #
  727.  
  728. gcal.info: msg2 $(srcdir)/$(texDIR)/gcal-de.texi $(srcdir)/$(texDIR)/gcal-us.texi
  729.     if test ! -f "$(srcdir)/gcal-de.info" || test ! -f "$(srcdir)/gcal-us.info"; \
  730.     then \
  731.       if test -n "$(MAKEINFO)"; \
  732.       then \
  733.         echo "Creating info files"; \
  734.         echo "Please wait..."; \
  735.         if test ! -f "$(srcdir)/gcal-de.info"; \
  736.         then \
  737.           $(MAKEINFO) $(MAKEINFOFLAGS) $(srcdir)/gcal-de.info $(srcdir)/$(texDIR)/gcal-de.texi; \
  738.           echo "$(srcdir)/gcal-de.info* created"; \
  739.         fi; \
  740.         if test ! -f "$(srcdir)/gcal-us.info"; \
  741.         then \
  742.           $(MAKEINFO) $(MAKEINFOFLAGS) $(srcdir)/gcal-us.info $(srcdir)/$(texDIR)/gcal-us.texi; \
  743.           echo "$(srcdir)/gcal-us.info* created"; \
  744.         fi; \
  745.       else \
  746.         echo "Unable to create info files, missing \`makeinfo'"; \
  747.       fi; \
  748.     else \
  749.       echo "Creation of info files unnecessary"; \
  750.     fi
  751.  
  752. info: gcal.info
  753.  
  754. #
  755. # Try to create dvi documentation file according to selected language.
  756. #
  757. # If German language is selected, convert the German Texinfo file by
  758. # perl (prefered) or awk to get the German "Umlaute" characters.
  759. #
  760.  
  761. gcal.dvi: msg $(srcdir)/$(texDIR)/gcal-de.texi $(srcdir)/$(texDIR)/gcal-us.texi
  762.     if test ! -f "gcal.dvi"; \
  763.     then \
  764.       if test -n "$(TEXI2DVI)"; \
  765.       then \
  766.         echo "Creating dvi file"; \
  767.         echo "Please wait..."; \
  768.         if test "$(lang)" = German; \
  769.         then \
  770.           if test -n "$(PERL)"; \
  771.           then \
  772.             echo "$(PERL) converts German Umlaute in \`$(srcdir)/$(texDIR)/gcal-de.texi' ..."; \
  773.             $(PERL) $(srcdir)/$(texDIR)/2umlaut.pl $(srcdir)/$(texDIR)/gcal-de.texi > \
  774.             $(srcdir)/$(texDIR)/gcal.texi; \
  775.           else \
  776.             if test -n "$(AWK)"; \
  777.             then \
  778.               echo "$(AWK) converts German Umlaute in \`$(srcdir)/$(texDIR)/gcal-de.texi' ..."; \
  779.               $(AWK) -f $(srcdir)/$(texDIR)/2umlaut.awk $(srcdir)/$(texDIR)/gcal-de.texi > \
  780.               $(srcdir)/$(texDIR)/gcal.texi; \
  781.             else \
  782.               echo "German Umlaute not converted, missing \`perl' / \`awk'"; \
  783.               cp $(srcdir)/$(texDIR)/gcal-de.texi $(srcdir)/$(texDIR)/gcal.texi; \
  784.             fi; \
  785.           fi; \
  786.         else \
  787.           cp $(srcdir)/$(texDIR)/gcal-us.texi $(srcdir)/$(texDIR)/gcal.texi; \
  788.         fi; \
  789.         $(TEXI2DVI) $(srcdir)/$(texDIR)/gcal.texi; \
  790.         rm -f $(srcdir)/$(texDIR)/gcal.texi; \
  791.         echo "gcal.dvi file created"; \
  792.       else \
  793.         echo "Unable to create dvi file, missing \`texi2dvi'"; \
  794.       fi; \
  795.     else \
  796.       echo "Creation of dvi file unnecessary"; \
  797.     fi
  798.  
  799. dvi: gcal.dvi
  800.  
  801. #### End of actual build-related targets section. ####
  802.  
  803.  
  804.  
  805. #### Start of install section. ####
  806.  
  807. install: msg installdirs installbin installscript installdata installman installdates installinfo
  808.     @echo "All installs done"
  809.  
  810. installdirs: $(srcdir)/mkinstalldirs
  811.     if test -n "$(AWK)" || test -n "$(PERL)"; \
  812.     then \
  813.       $(SHELL) $(srcdir)/mkinstalldirs $(ALLDIRS2); \
  814.     else \
  815.       $(SHELL) $(srcdir)/mkinstalldirs $(ALLDIRS); \
  816.     fi
  817.     @echo "All necessary directorys found respectively created"
  818.  
  819. installbin: all installdirs
  820.     @echo "Installing \`./gcal$X' to \`$(bindir)/gcal$X'"
  821.     $(INSTALL_PROGRAM) ./gcal$X $(bindir)/gcal$X
  822.     @echo "Binary file installed"
  823.  
  824. installscript: msg2 installdirs
  825.     @echo "Installing \`$(srcdir)/tcal' to \`$(bindir)/tcal'"
  826.     $(INSTALL_PROGRAM) $(srcdir)/tcal $(bindir)/tcal
  827.     @echo "Shell script file installed"
  828.  
  829. installdata: msg2 $(srcdir)/gcalrc installbin
  830.     @echo "Installing \`$(srcdir)/gcalrc' to \`$(datadir)/.gcalrc'"
  831.     $(INSTALL_DATA) $(srcdir)/gcalrc $(datadir)/.gcalrc
  832.     @echo "Data file installed"
  833.  
  834. installman: msg installdirs $(srcdir)/$(manDIR)/gcal-de.1 $(srcdir)/$(manDIR)/gcal-us.1
  835.     rm -f $(mandir)/gcal.$(manext)
  836.     if test "$(lang)" = German; \
  837.     then \
  838.       file=$(srcdir)/$(manDIR)/gcal-de.1; \
  839.     else \
  840.       file=$(srcdir)/$(manDIR)/gcal-us.1; \
  841.     fi; \
  842.     echo "Installing \`$$file' to \`$(mandir)/gcal.$(manext)'"; \
  843.     $(INSTALL_DATA) $$file $(mandir)/gcal.$(manext)
  844.     @echo "Manual page installed"
  845.  
  846. #
  847. # If `makeinfo' program exists, either install all `gcal-de.info' or `gcal-us.info'
  848. # files renamed to `gcal.info' into infodir running `makeinfo' again, else install
  849. # them with their original name into infodir.
  850. #
  851. installinfo: msg2 gcal.info installdirs $(srcdir)/$(texDIR)/gcal-de.texi $(srcdir)/$(texDIR)/gcal-us.texi
  852.     rm -f $(infodir)/gcal*.info*
  853.     if test -n "$(MAKEINFO)"; \
  854.     then \
  855.       if test "$(lang)" = German; \
  856.       then \
  857.         $(MAKEINFO) $(srcdir)/$(texDIR)/gcal-de.texi; \
  858.       else \
  859.         $(MAKEINFO) $(srcdir)/$(texDIR)/gcal-us.texi; \
  860.       fi; \
  861.       for file in `echo gcal.info*`; \
  862.       do \
  863.         echo "Installing \`$$file' to \`$(infodir)/$$file'"; \
  864.         $(INSTALL_DATA) $$file $(infodir)/$$file; \
  865.         rm -f $$file; \
  866.       done; \
  867.     else \
  868.       if test "$(lang)" = German; \
  869.       then \
  870.         for file in `echo $(srcdir)/gcal-de.info*`; \
  871.         do \
  872.           echo "Installing \`$$file' to \`$(infodir)/$$file'"; \
  873.           $(INSTALL_DATA) $$file $(infodir)/$$file; \
  874.         done; \
  875.       else \
  876.         for file in `echo $(srcdir)/gcal-us.info*`; \
  877.         do \
  878.           echo "Installing \`$$file' to \`$(infodir)/$$file'"; \
  879.           $(INSTALL_DATA) $$file $(infodir)/$$file; \
  880.         done; \
  881.       fi; \
  882.     fi
  883.     @echo "Info files installed"
  884.  
  885. #
  886. # Only if a reminder/appointment file which we have to install,
  887. # is NOT in the library directory, then we will install it.
  888. # This is because the complete installation process is rather slow.
  889. # Prefering perl!
  890. #
  891. installdates: msg $(calendarsFILES) $(datesmiscFILES) $(datesFILES) installdirs
  892.     if test -n "$(AWK)" || test -n "$(PERL)"; \
  893.     then \
  894.       we_installed=no; \
  895.       if test -n "$(PERL)"; \
  896.       then \
  897.         cp $(srcdir)/$(toolscriptDIR)/cal2gcal.pl cal2gcal; \
  898.       else \
  899.         cp $(srcdir)/$(toolscriptDIR)/cal2gcal.awk cal2gcal; \
  900.       fi; \
  901.       for file in $(calendarsFILES); \
  902.       do \
  903.         install_target=$(datesdir)/`echo $$file | sed -e 's/$(calendarsDIR)\///'`; \
  904.         if test ! -f "$$install_target"; \
  905.         then \
  906.           if test -n "$(PERL)"; \
  907.           then \
  908.             echo "$(PERL) installs \`$(srcdir)/$$file' to \`$$install_target'"; \
  909.             $(PERL) cal2gcal $(srcdir)/$$file > $$install_target; \
  910.           else \
  911.             echo "$(AWK) installs \`$(srcdir)/$$file' to \`$$install_target'"; \
  912.             $(AWK) -f cal2gcal $(srcdir)/$$file > $$install_target; \
  913.           fi; \
  914.           if test -n "$(SRCPERMS)"; \
  915.           then \
  916.             chmod $(SRCPERMS) $$install_target; \
  917.           else \
  918.             chmod $(SRCPERMS2) $$install_target; \
  919.           fi; \
  920.           we_installed=yes; \
  921.         fi; \
  922.       done; \
  923.       rm -f cal2gcal; \
  924.       if test -n "$(PERL)"; \
  925.       then \
  926.         echo "\$$lang = '$(lang)';" > ct2gcal; \
  927.         cat $(srcdir)/$(toolscriptDIR)/ct2gcal.pl >> ct2gcal; \
  928.       else \
  929.         echo "lang = \"$(lang)\"" > ct2gcal; \
  930.         cat $(srcdir)/$(toolscriptDIR)/ct2gcal.awk >> ct2gcal; \
  931.       fi; \
  932.       for file in $(datesFILES); \
  933.       do \
  934.         install_target=$(datesdir)/`echo $$file | sed -e 's/$(datesDIR)\///'`; \
  935.         if test ! -f "$$install_target"; \
  936.         then \
  937.           if test -n "$(PERL)"; \
  938.           then \
  939.             echo "$(PERL) installs \`$(srcdir)/$$file' to \`$$install_target'"; \
  940.             $(PERL) ct2gcal $(srcdir)/$$file > $$install_target; \
  941.           else \
  942.             echo "$(AWK) installs \`$(srcdir)/$$file' to \`$$install_target'"; \
  943.             $(AWK) -f ct2gcal $(srcdir)/$$file > $$install_target; \
  944.           fi; \
  945.           if test -n "$(SRCPERMS)"; \
  946.           then \
  947.             chmod $(SRCPERMS) $$install_target; \
  948.           else \
  949.             chmod $(SRCPERMS2) $$install_target; \
  950.           fi; \
  951.           we_installed=yes; \
  952.         fi; \
  953.       done; \
  954.       rm -f ct2gcal; \
  955.       for file in $(datesmiscFILES); \
  956.       do \
  957.         install_target=$(datesdir)/`echo $$file | sed -e 's/$(datesDIR)\///'`; \
  958.         if test ! -f "$$install_target"; \
  959.         then \
  960.           echo "Installing \`$(srcdir)/$$file' to \`$$install_target'"; \
  961.           $(INSTALL_DATA) $(srcdir)/$$file $$install_target; \
  962.           we_installed=yes; \
  963.         fi; \
  964.       done; \
  965.       if test "$$we_installed" = yes; \
  966.       then \
  967.         if test -n "$(BINPERMS)"; \
  968.         then \
  969.           chmod $(BINPERMS) $(datesdir); \
  970.         else \
  971.           chmod $(BINPERMS2) $(datesdir); \
  972.         fi; \
  973.         echo "Dates files installed"; \
  974.       else \
  975.         echo "Installation of dates files unnecessary"; \
  976.       fi; \
  977.     else \
  978.       echo "Unable to install dates files, missing \`awk' and \`perl'"; \
  979.     fi
  980.  
  981. uninstall: msg3
  982.     @echo "Please wait..."
  983.     rm -f $(bindir)/gcal$X $(bindir)/tcal$X $(datadir)/.gcalrc
  984.     rm -f $(mandir)/gcal*.$(manext) $(infodir)/gcal*.info*
  985.     if test -n "$(AWK)" || test -n "$(PERL)"; \
  986.     then \
  987.       for file in $(calendarsFILES); \
  988.       do \
  989.         uninstall_target=$(datesdir)/`echo $$file | sed -e 's/$(calendarsDIR)\///'`; \
  990.         rm -f $$uninstall_target; \
  991.       done; \
  992.       for file in $(datesFILES) $(datesmiscFILES); \
  993.       do \
  994.         uninstall_target=$(datesdir)/`echo $$file | sed -e 's/$(datesDIR)\///'`; \
  995.         rm -f $$uninstall_target; \
  996.       done; \
  997.     fi
  998.     @echo "Distribution uninstalled"
  999.  
  1000. #### End of install section. ####
  1001.  
  1002.  
  1003.  
  1004. #### Start of clean section. ####
  1005.  
  1006. clean: msg3
  1007.     rm -f *$O gcal$X a.out core cal2gcal ct2gcal *~ *.tmp _gcal.test \
  1008.     $(srcdir)/$(texDIR)/gcal.texi gcal*.doc gcal.info* gcal.dvi
  1009.  
  1010. texclean: msg3
  1011.     rm -f *.ar *.ars *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys
  1012.     rm -f *.log *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
  1013.  
  1014. archiveclean: msg3
  1015.     rm -f *.gz *.z *.Z *.zip *.zoo *.lzh *.shar*
  1016.  
  1017. distclean: clean texclean archiveclean
  1018.     rm -f Makefile config.status config.cache config.log gcal_cfg.h stamp-h
  1019.  
  1020. mostlyclean: distclean
  1021.  
  1022. realclean: distclean
  1023.     rm -f TAGS
  1024.     rm -f tags
  1025.  
  1026. maintainer-clean: msg4 realclean
  1027.     if test -n "$(MAKEINFO)"; \
  1028.     then \
  1029.       rm -f $(srcdir)/gcal*.info*; \
  1030.       if test -n "$(MAKEINFOVERSION)"; \
  1031.       then \
  1032.         rm -f $(srcdir)/$(txtDIR)/gcal*.doc; \
  1033.       fi; \
  1034.     fi
  1035.  
  1036. #### End of clean section. ####
  1037.  
  1038.  
  1039.  
  1040. #### Start of distribution section. ####
  1041.  
  1042. #
  1043. # Prefering gzip!
  1044. #
  1045. dist: msg2 $(DISTFILES) Makefile gcal.txt $(txtFILES) gcal.info $(INFOFILES)
  1046.     distname=gcal-`sed -e '/VERSION_NO/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' $(srcdir)/gcal_def.h`; \
  1047.     if (test -n "$(GZIP)" && test ! -f "$$distname.tar.gz") || \
  1048.     (test -n "$(COMPRESS)" && test ! -f "$$distname.tar.Z"); \
  1049.     then \
  1050.       if test -n "$(TAR)" && (test -n "$(GZIP)" || test -n "$(COMPRESS)"); \
  1051.       then \
  1052.         if test -n "$(GZIP)"; \
  1053.         then \
  1054.           echo "Creating $$distname.tar.gz"; \
  1055.         else \
  1056.           echo "Creating $$distname.tar.Z"; \
  1057.         fi; \
  1058.         echo "Please wait..."; \
  1059.         rm -rf $$distname; \
  1060.         mkdir $$distname; \
  1061.         chmod $(DISTBINPERMS) $$distname; \
  1062.         for dir in $(DISTDIRS); \
  1063.         do \
  1064.           mkdir $$distname/$$dir; \
  1065.           chmod $(DISTBINPERMS) $$distname/$$dir; \
  1066.         done; \
  1067.         for file in $(DISTFILES) $(CREATFILES); \
  1068.         do \
  1069.           ln $(srcdir)/$$file $$distname/$$file 2>/dev/null || \
  1070.           { \
  1071.             echo "Cannot link, copying \`$(srcdir)/$$file'"; \
  1072.             cp -p $(srcdir)/$$file $$distname/$$file; \
  1073.           }; \
  1074.           chmod $(DISTSRCPERMS) $$distname/$$file; \
  1075.         done; \
  1076.         for file in $(shellscriptFILES); \
  1077.         do \
  1078.           chmod $(DISTBINPERMS) $$distname/$$file; \
  1079.         done; \
  1080.         if test -n "$(GZIP)"; \
  1081.         then \
  1082.           $(TAR) $(TARFLAGS) - $$distname | $(GZIP) $(GZIPFLAGS) > $$distname.tar.gz; \
  1083.           echo "$$distname.tar.gz created"; \
  1084.         else \
  1085.           $(TAR) $(TARFLAGS) - $$distname | $(COMPRESS) $(COMPRESSFLAGS) > $$distname.tar.Z; \
  1086.           echo "$$distname.tar.Z created"; \
  1087.         fi; \
  1088.         rm -rf $$distname; \
  1089.         if test -n "$(SRCPERMS)"; \
  1090.         then \
  1091.           for file in $(DISTFILES) $(CREATFILES); \
  1092.           do \
  1093.             chmod $(SRCPERMS) $$file; \
  1094.           done; \
  1095.         else \
  1096.           for file in $(DISTFILES) $(CREATFILES); \
  1097.           do \
  1098.             chmod $(SRCPERMS2) $$file; \
  1099.           done; \
  1100.         fi; \
  1101.         if test -n "$(BINPERMS)"; \
  1102.         then \
  1103.           for file in $(shellscriptFILES); \
  1104.           do \
  1105.             chmod $(BINPERMS) $$file; \
  1106.           done; \
  1107.         else \
  1108.           for file in $(shellscriptFILES); \
  1109.           do \
  1110.             chmod $(BINPERMS2) $$file; \
  1111.           done; \
  1112.         fi; \
  1113.       else \
  1114.         if test -z "$(TAR)"; \
  1115.         then \
  1116.           echo "Unable to create $$distname.tar, missing \`tar'"; \
  1117.         else \
  1118.           if test -z "$(GZIP)"; \
  1119.           then \
  1120.             echo "Unable to create $$distname.tar.gz, missing \`gzip'"; \
  1121.           else \
  1122.             echo "Unable to create $$distname.tar.Z, missing \`compress'"; \
  1123.           fi; \
  1124.         fi; \
  1125.       fi; \
  1126.     else \
  1127.       if test -f "$$distname.tar.gz"; \
  1128.       then \
  1129.         echo "Creation of $$distname.tar.gz unnecessary"; \
  1130.       else \
  1131.         echo "Creation of $$distname.tar.Z unnecessary"; \
  1132.       fi; \
  1133.     fi
  1134.  
  1135. distzip: msg2 $(DISTFILES) Makefile gcal.txt $(txtFILES) gcal.info $(INFOFILES)
  1136.     distname=gcal-`sed -e '/VERSION_NO/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e s/[.]//g $(srcdir)/gcal_def.h`; \
  1137.     if test ! -f "$$distname.zip"; \
  1138.     then \
  1139.       if test -n "$(ZIP)"; \
  1140.       then \
  1141.         echo "Creating $$distname.zip"; \
  1142.         echo "Please wait..."; \
  1143.         rm -rf $$distname; \
  1144.         mkdir $$distname; \
  1145.         chmod $(DISTBINPERMS) $$distname; \
  1146.         for dir in $(DISTDIRS); \
  1147.         do \
  1148.           mkdir $$distname/$$dir; \
  1149.           chmod $(DISTBINPERMS) $$distname/$$dir; \
  1150.         done; \
  1151.         for file in $(DISTFILES) $(CREATFILES); \
  1152.         do \
  1153.           ln $(srcdir)/$$file $$distname/$$file 2>/dev/null || \
  1154.           { \
  1155.             echo "Cannot link, copying \`$(srcdir)/$$file'"; \
  1156.             cp -p $(srcdir)/$$file $$distname/$$file; \
  1157.           }; \
  1158.           chmod $(DISTSRCPERMS) $$distname/$$file; \
  1159.         done; \
  1160.         for file in $(shellscriptFILES); \
  1161.         do \
  1162.           chmod $(DISTBINPERMS) $$distname/$$file; \
  1163.         done; \
  1164.         $(ZIP) $(ZIPFLAGS) $$distname $$distname; \
  1165.         echo "$$distname.zip created"; \
  1166.         rm -rf $$distname; \
  1167.         if test -n "$(SRCPERMS)"; \
  1168.         then \
  1169.           for file in $(DISTFILES) $(CREATFILES); \
  1170.           do \
  1171.             chmod $(SRCPERMS) $$file; \
  1172.           done; \
  1173.         else \
  1174.           for file in $(DISTFILES) $(CREATFILES); \
  1175.           do \
  1176.             chmod $(SRCPERMS2) $$file; \
  1177.           done; \
  1178.         fi; \
  1179.         if test -n "$(BINPERMS)"; \
  1180.         then \
  1181.           for file in $(shellscriptFILES); \
  1182.           do \
  1183.             chmod $(BINPERMS) $$file; \
  1184.           done; \
  1185.         else \
  1186.           for file in $(shellscriptFILES); \
  1187.           do \
  1188.             chmod $(BINPERMS2) $$file; \
  1189.           done; \
  1190.         fi; \
  1191.       else \
  1192.         echo "Unable to create $$distname.zip, missing \`zip'"; \
  1193.       fi; \
  1194.     else \
  1195.       echo "Creation of $$distname.zip unnecessary"; \
  1196.     fi
  1197.  
  1198. distzoo: msg2 $(DISTFILES) Makefile gcal.txt $(txtFILES) gcal.info $(INFOFILES)
  1199.     distname=gcal-`sed -e '/VERSION_NO/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e s/[.]//g $(srcdir)/gcal_def.h`; \
  1200.     if test ! -f "$$distname.zoo"; \
  1201.     then \
  1202.       if test -n "$(FIND)"; \
  1203.       then \
  1204.         if test -n "$(ZOO)"; \
  1205.         then \
  1206.           echo "Creating $$distname.zoo"; \
  1207.           echo "Please wait..."; \
  1208.           rm -rf $$distname; \
  1209.           mkdir $$distname; \
  1210.           chmod $(DISTBINPERMS) $$distname; \
  1211.           for dir in $(DISTDIRS); \
  1212.           do \
  1213.             mkdir $$distname/$$dir; \
  1214.             chmod $(DISTBINPERMS) $$distname/$$dir; \
  1215.           done; \
  1216.           for file in $(DISTFILES) $(CREATFILES); \
  1217.           do \
  1218.             ln $(srcdir)/$$file $$distname/$$file 2>/dev/null || \
  1219.             { \
  1220.               echo "Cannot link, copying \`$(srcdir)/$$file'"; \
  1221.               cp -p $(srcdir)/$$file $$distname/$$file; \
  1222.             }; \
  1223.             chmod $(DISTSRCPERMS) $$distname/$$file; \
  1224.           done; \
  1225.           for file in $(shellscriptFILES); \
  1226.           do \
  1227.             chmod $(DISTBINPERMS) $$distname/$$file; \
  1228.           done; \
  1229.           $(FIND) $$distname $(FINDFLAGS) | $(ZOO) $(ZOOFLAGS) $$distname; \
  1230.           echo "$$distname.zoo created"; \
  1231.           rm -rf $$distname; \
  1232.           if test -n "$(SRCPERMS)"; \
  1233.           then \
  1234.             for file in $(DISTFILES) $(CREATFILES); \
  1235.             do \
  1236.               chmod $(SRCPERMS) $$file; \
  1237.             done; \
  1238.           else \
  1239.             for file in $(DISTFILES) $(CREATFILES); \
  1240.             do \
  1241.               chmod $(SRCPERMS2) $$file; \
  1242.             done; \
  1243.           fi; \
  1244.           if test -n "$(BINPERMS)"; \
  1245.           then \
  1246.             for file in $(shellscriptFILES); \
  1247.             do \
  1248.               chmod $(BINPERMS) $$file; \
  1249.             done; \
  1250.           else \
  1251.             for file in $(shellscriptFILES); \
  1252.             do \
  1253.               chmod $(BINPERMS2) $$file; \
  1254.             done; \
  1255.           fi; \
  1256.         else \
  1257.           echo "Unable to create $$distname.zoo, missing \`zoo'"; \
  1258.         fi; \
  1259.       else \
  1260.         echo "Unable to create $$distname.zoo, missing \`find'"; \
  1261.       fi; \
  1262.     else \
  1263.       echo "Creation of $$distname.zoo unnecessary"; \
  1264.     fi
  1265.  
  1266. distlha: msg2 $(DISTFILES) Makefile gcal.txt $(txtFILES) gcal.info $(INFOFILES)
  1267.     distname=gcal-`sed -e '/VERSION_NO/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e s/[.]//g $(srcdir)/gcal_def.h`; \
  1268.     if test ! -f "$$distname.lzh"; \
  1269.     then \
  1270.       if test -n "$(LHA)"; \
  1271.       then \
  1272.         echo "Creating $$distname.lzh"; \
  1273.         echo "Please wait..."; \
  1274.         rm -rf $$distname; \
  1275.         mkdir $$distname; \
  1276.         chmod $(DISTBINPERMS) $$distname; \
  1277.         for dir in $(DISTDIRS); \
  1278.         do \
  1279.           mkdir $$distname/$$dir; \
  1280.           chmod $(DISTBINPERMS) $$distname/$$dir; \
  1281.         done; \
  1282.         for file in $(DISTFILES) $(CREATFILES); \
  1283.         do \
  1284.           ln $(srcdir)/$$file $$distname/$$file 2>/dev/null || \
  1285.           { \
  1286.             echo "Cannot link, copying \`$(srcdir)/$$file'"; \
  1287.             cp -p $(srcdir)/$$file $$distname/$$file; \
  1288.           }; \
  1289.           chmod $(DISTSRCPERMS) $$distname/$$file; \
  1290.         done; \
  1291.         for file in $(shellscriptFILES); \
  1292.         do \
  1293.           chmod $(DISTBINPERMS) $$distname/$$file; \
  1294.         done; \
  1295.         $(LHA) $(LHAFLAGS) $$distname.lzh $$distname; \
  1296.         echo "$$distname.lzh created"; \
  1297.         rm -rf $$distname; \
  1298.         if test -n "$(SRCPERMS)"; \
  1299.         then \
  1300.           for file in $(DISTFILES) $(CREATFILES); \
  1301.           do \
  1302.             chmod $(SRCPERMS) $$file; \
  1303.           done; \
  1304.         else \
  1305.           for file in $(DISTFILES) $(CREATFILES); \
  1306.           do \
  1307.             chmod $(SRCPERMS2) $$file; \
  1308.           done; \
  1309.         fi; \
  1310.         if test -n "$(BINPERMS)"; \
  1311.         then \
  1312.           for file in $(shellscriptFILES); \
  1313.           do \
  1314.             chmod $(BINPERMS) $$file; \
  1315.           done; \
  1316.         else \
  1317.           for file in $(shellscriptFILES); \
  1318.           do \
  1319.             chmod $(BINPERMS2) $$file; \
  1320.           done; \
  1321.         fi; \
  1322.       else \
  1323.         echo "Unable to create $$distname.lzh, missing \`lha' or \`lharc'"; \
  1324.       fi; \
  1325.     else \
  1326.       echo "Creation of $$distname.lzh unnecessary"; \
  1327.     fi
  1328.  
  1329. distshar: msg2 $(DISTFILES) Makefile gcal.txt $(txtFILES) gcal.info $(INFOFILES)
  1330.     distname=gcal-`sed -e '/VERSION_NO/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' $(srcdir)/gcal_def.h`; \
  1331.     if test ! -f "$$distname.shar*"; \
  1332.     then \
  1333.       if test -n "$(SHAR)"; \
  1334.       then \
  1335.         echo "Creating $$distname.shar"; \
  1336.         echo "Please wait..."; \
  1337.         rm -rf $$distname; \
  1338.         mkdir $$distname; \
  1339.         chmod $(DISTBINPERMS) $$distname; \
  1340.         for dir in $(DISTDIRS); \
  1341.         do \
  1342.           mkdir $$distname/$$dir; \
  1343.           chmod $(DISTBINPERMS) $$distname/$$dir; \
  1344.         done; \
  1345.         for file in $(DISTFILES) $(CREATFILES); \
  1346.         do \
  1347.           ln $(srcdir)/$$file $$distname/$$file 2>/dev/null || \
  1348.           { \
  1349.             echo "Cannot link, copying \`$(srcdir)/$$file'"; \
  1350.             cp -p $(srcdir)/$$file $$distname/$$file; \
  1351.           }; \
  1352.           chmod $(DISTSRCPERMS) $$distname/$$file; \
  1353.         done; \
  1354.         for file in $(shellscriptFILES); \
  1355.         do \
  1356.           chmod $(DISTBINPERMS) $$distname/$$file; \
  1357.         done; \
  1358.         $(SHAR) $(SHARFLAGS) -o$$distname.shar $$distname; \
  1359.         echo "$$distname.shar created"; \
  1360.         rm -rf $$distname; \
  1361.         if test -n "$(SRCPERMS)"; \
  1362.         then \
  1363.           for file in $(DISTFILES) $(CREATFILES); \
  1364.           do \
  1365.             chmod $(SRCPERMS) $$file; \
  1366.           done; \
  1367.         else \
  1368.           for file in $(DISTFILES) $(CREATFILES); \
  1369.           do \
  1370.             chmod $(SRCPERMS2) $$file; \
  1371.           done; \
  1372.         fi; \
  1373.         if test -n "$(BINPERMS)"; \
  1374.         then \
  1375.           for file in $(shellscriptFILES); \
  1376.           do \
  1377.             chmod $(BINPERMS) $$file; \
  1378.           done; \
  1379.         else \
  1380.           for file in $(shellscriptFILES); \
  1381.           do \
  1382.             chmod $(BINPERMS2) $$file; \
  1383.           done; \
  1384.         fi; \
  1385.       else \
  1386.         echo "Unable to create $$distname.shar, missing \`shar'"; \
  1387.       fi; \
  1388.     else \
  1389.       echo "Creation of $$distname.shar unnecessary"; \
  1390.     fi
  1391.  
  1392. #### End of distribution section. ####
  1393.  
  1394.  
  1395.  
  1396. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  1397. # Otherwise a system limit (for SysV at least) may be exceeded.
  1398. .NOEXPORT:
  1399.  
  1400. # End of file
  1401.